package me.vudu.Conflict.util;

import org.getspout.spoutapi.event.screen.ButtonClickEvent;
import org.getspout.spoutapi.gui.GenericButton;

public class ExitButton extends GenericButton {

	public ExitButton() {
		super("");
		this.setTooltip("Exit");
		this.setWidth(20).setHeight(20);
	}

	@Override
	public void onButtonClick(ButtonClickEvent event) {
		event.getPlayer().getMainScreen().getActivePopup().close();
	}

}